"use strict";
import { util } from "utils";
import { getFlowData } from "./tool";
exports.main = async (event, context) => {
    console.log("----", event);
    //event为客户端上传的参数
    // 校验参数
    let signErrResult = util.checkSign(event);
    if (!util.nilValue(signErrResult)) {
        return signErrResult;
    }

    // 获取数据
    let [flow_err, flow_data] = await getFlowData();
    return util.resPack(flow_data, flow_err);
};
